<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>prngd: H:/nist_testsuite/include/LongestRunOfOnes.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">prngd
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_longest_run_of_ones_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">LongestRunOfOnes.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">* LongestRunsOfOnes.h</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">* Last edited: 21.07.2014</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">* Author: David Noack</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">*/</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &quot;NistTest.h&quot;</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;boost\math\special_functions\gamma.hpp&gt;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div>
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="structv__class.html">   12</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structv__class.html">v_class</a>{</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;    <span class="keywordtype">short</span> value;</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;    <span class="keywordtype">short</span> count;</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;    <span class="keywordtype">double</span> pi;</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;};</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div>
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="class_longest_run_of_ones.html">   23</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_longest_run_of_ones.html">LongestRunOfOnes</a> : <span class="keyword">public</span> <a class="code" href="class_nist_test.html">NistTest</a></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;{</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    <span class="keyword">public</span>:</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;        <a class="code" href="class_longest_run_of_ones.html#a31f423b28ec19adfec1eace7dc2f9f82">LongestRunOfOnes</a>(<span class="keywordtype">bool</span>* bitArray, <span class="keywordtype">int</span> bitArraySize);</div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="class_longest_run_of_ones.html#a52276f4e4d31e1482d42960df22120f8">   31</a></span>&#160;        <a class="code" href="class_longest_run_of_ones.html#a52276f4e4d31e1482d42960df22120f8">~LongestRunOfOnes</a>(){};</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="class_longest_run_of_ones.html#ad2b9ba2a00bb390fbb5102f998911d83">   34</a></span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_longest_run_of_ones.html#ad2b9ba2a00bb390fbb5102f998911d83">start</a>(){};</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;        <span class="keywordtype">double</span> <a class="code" href="class_longest_run_of_ones.html#a0fb02a4259b033069009ff40c6663a2c">execute</a>(<span class="keywordtype">int</span> size);</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="keyword">private</span>:</div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="class_longest_run_of_ones.html#af2cfc53c1d67a79022f6b2794f04b4a4">   42</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_longest_run_of_ones.html#af2cfc53c1d67a79022f6b2794f04b4a4">blockSize</a>;</div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="class_longest_run_of_ones.html#a5c54ccc63108695ea2d395e130e198e2">   44</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_longest_run_of_ones.html#a5c54ccc63108695ea2d395e130e198e2">numberOfblocks</a>;</div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="class_longest_run_of_ones.html#a325fb0596bf801fe386c1bddb08e5c2a">   46</a></span>&#160;        <span class="keywordtype">double</span> <a class="code" href="class_longest_run_of_ones.html#a325fb0596bf801fe386c1bddb08e5c2a">chi_sqr</a>;</div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="class_longest_run_of_ones.html#a44201d08597cb0d9f450d82225ca8ffb">   48</a></span>&#160;        <a class="code" href="structv__class.html">v_class</a>* <a class="code" href="class_longest_run_of_ones.html#a44201d08597cb0d9f450d82225ca8ffb">v</a>;</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;};</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div>
<div class="ttc" id="class_longest_run_of_ones_html_ad2b9ba2a00bb390fbb5102f998911d83"><div class="ttname"><a href="class_longest_run_of_ones.html#ad2b9ba2a00bb390fbb5102f998911d83">LongestRunOfOnes::start</a></div><div class="ttdeci">void start()</div><div class="ttdef"><b>Definition:</b> LongestRunOfOnes.h:34</div></div>
<div class="ttc" id="class_longest_run_of_ones_html_a31f423b28ec19adfec1eace7dc2f9f82"><div class="ttname"><a href="class_longest_run_of_ones.html#a31f423b28ec19adfec1eace7dc2f9f82">LongestRunOfOnes::LongestRunOfOnes</a></div><div class="ttdeci">LongestRunOfOnes(bool *bitArray, int bitArraySize)</div><div class="ttdef"><b>Definition:</b> LongestRunOfOnes.cpp:9</div></div>
<div class="ttc" id="class_longest_run_of_ones_html_af2cfc53c1d67a79022f6b2794f04b4a4"><div class="ttname"><a href="class_longest_run_of_ones.html#af2cfc53c1d67a79022f6b2794f04b4a4">LongestRunOfOnes::blockSize</a></div><div class="ttdeci">int blockSize</div><div class="ttdef"><b>Definition:</b> LongestRunOfOnes.h:42</div></div>
<div class="ttc" id="class_longest_run_of_ones_html_a5c54ccc63108695ea2d395e130e198e2"><div class="ttname"><a href="class_longest_run_of_ones.html#a5c54ccc63108695ea2d395e130e198e2">LongestRunOfOnes::numberOfblocks</a></div><div class="ttdeci">int numberOfblocks</div><div class="ttdef"><b>Definition:</b> LongestRunOfOnes.h:44</div></div>
<div class="ttc" id="class_nist_test_html"><div class="ttname"><a href="class_nist_test.html">NistTest</a></div><div class="ttdef"><b>Definition:</b> NistTest.h:11</div></div>
<div class="ttc" id="class_longest_run_of_ones_html"><div class="ttname"><a href="class_longest_run_of_ones.html">LongestRunOfOnes</a></div><div class="ttdoc">Implementation of the Nist Longest Run of Ones Test. </div><div class="ttdef"><b>Definition:</b> LongestRunOfOnes.h:23</div></div>
<div class="ttc" id="class_longest_run_of_ones_html_a325fb0596bf801fe386c1bddb08e5c2a"><div class="ttname"><a href="class_longest_run_of_ones.html#a325fb0596bf801fe386c1bddb08e5c2a">LongestRunOfOnes::chi_sqr</a></div><div class="ttdeci">double chi_sqr</div><div class="ttdef"><b>Definition:</b> LongestRunOfOnes.h:46</div></div>
<div class="ttc" id="class_longest_run_of_ones_html_a0fb02a4259b033069009ff40c6663a2c"><div class="ttname"><a href="class_longest_run_of_ones.html#a0fb02a4259b033069009ff40c6663a2c">LongestRunOfOnes::execute</a></div><div class="ttdeci">double execute(int size)</div><div class="ttdef"><b>Definition:</b> LongestRunOfOnes.cpp:12</div></div>
<div class="ttc" id="class_longest_run_of_ones_html_a52276f4e4d31e1482d42960df22120f8"><div class="ttname"><a href="class_longest_run_of_ones.html#a52276f4e4d31e1482d42960df22120f8">LongestRunOfOnes::~LongestRunOfOnes</a></div><div class="ttdeci">~LongestRunOfOnes()</div><div class="ttdef"><b>Definition:</b> LongestRunOfOnes.h:31</div></div>
<div class="ttc" id="class_longest_run_of_ones_html_a44201d08597cb0d9f450d82225ca8ffb"><div class="ttname"><a href="class_longest_run_of_ones.html#a44201d08597cb0d9f450d82225ca8ffb">LongestRunOfOnes::v</a></div><div class="ttdeci">v_class * v</div><div class="ttdef"><b>Definition:</b> LongestRunOfOnes.h:48</div></div>
<div class="ttc" id="structv__class_html"><div class="ttname"><a href="structv__class.html">v_class</a></div><div class="ttdef"><b>Definition:</b> LongestRunOfOnes.h:12</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_84e7a5db4faa3bb3efa0834f14a17625.html">H:</a></li><li class="navelem"><a class="el" href="dir_5bd6e5762e2d12a994937fef8bd8081a.html">nist_testsuite</a></li><li class="navelem"><a class="el" href="dir_9332151be99f7e112eb0a138608eff3e.html">include</a></li><li class="navelem"><b>LongestRunOfOnes.h</b></li>
    <li class="footer">Generated on Sun Aug 31 2014 18:02:14 for prngd by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.8 </li>
  </ul>
</div>
</body>
</html>
